﻿package sqlbuilder;

class SQLDirector {
    public static String buildSQL(SQLBuilder builder) {
      StringBuffer buffer = new StringBuffer();
      buffer.append(builder.getCommand());
      buffer.append(builder.getTable());
      buffer.append(builder.getWhat());
      buffer.append(builder.getCriteria());
      return buffer.toString();
    }
  }